// $URL: http://mingw-lib.googlecode.com/svn/trunk/working/avcodec_to_widget_9/input/t_box_input_file.h $
// $Rev: 312 $
// $Author: akio.miyoshi $
// $Date:: 2010-07-31 03:51:36 +0000#$

#ifndef T_BOX_INPUT_FILE_H
#define T_BOX_INPUT_FILE_H

#include "t_box_input.h"

class T_Box_Input_File : public T_Box_Input
{
    Q_OBJECT
public:
    static const int c_buffer_size = 32768;
    quint8 *m_buffer;
    QFile m_file;
    T_Box_Input_File(QString a_filename);
    ~T_Box_Input_File();
    virtual bool isValid();
    virtual void close();
protected:
    virtual qint64 size();
    virtual qint64 pos();
    virtual bool seek(qint64 offset);
    virtual QByteArray wait_read(qint64 a_max_size);
    virtual int getIOBufferSize();
};

#endif // T_BOX_INPUT_FILE_H
